<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class SendLog extends Model {
	protected $table = 'sendlogs';
	public $timestamps = false;

	protected $fillable = [
		'order_id', 'send_id', 'map_id', 'wx_id', 'unique', 'nums', 'win', 'products', 'status', 'create_time', 'expore_time',
	];

	public function order() {
		return $this->belongsTo(Order::class, 'o_id');
	}

	public function siphons() {
		return $this->hasMany(Siphonlog::class, 'sendlog_id');
	}

	public function wxUser() {
		return $this->belongsTo(WxUser::class, 'wx_id');
	}
}
